projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7bf31
)
gl renderer: Skip invisible shadows
author
Timm Bäder
<mail@baedert.org>
Sat, 18 May 2019 07:11:59 +0000
(09:11 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sat, 18 May 2019 11:47:59 +0000
(13:47 +0200)
gsk/gl/gskglrenderer.c
patch
|
blob
|
history
diff --git
a/gsk/gl/gskglrenderer.c
b/gsk/gl/gskglrenderer.c
index b37c36afaa24548bc03adb02d31c9aa7096744cf..9aa2df3199923cdfeac622b6d82b319ec06e0140 100644
(file)
--- a/
gsk/gl/gskglrenderer.c
+++ b/
gsk/gl/gskglrenderer.c
@@
-1807,6
+1807,9
@@
render_shadow_node (GskGLRenderer *self,
continue;
}
+ if (gdk_rgba_is_clear (&shadow->color))
+ continue;
+
min_x = builder->dx + shadow_child->bounds.origin.x;
min_y = builder->dy + shadow_child->bounds.origin.y;
max_x = min_x + shadow_child->bounds.size.width;